#!/usr/bin/env node

function Bomb(){
  this.message='bomb';
  this.flag='';
}

Bomb.prototype.start=function(){
  var that=this;
  this.flag=setTimeout(function(){
    console.log('Bomb');
  },3000);
}

Bomb.prototype.clear=function(){
  clearTimeout(this.flag);
}

var b1 = new Bomb();
var b2 = new Bomb();

b1.start();
setTimeout(b1.clear.bind(b1),1000);
b2.start();
setTimeout(b2.clear.bind(b2),1000);
